#ifndef PLAYERWIDGET_H
#define PLAYERWIDGET_H

#include <QWidget>
#include "ui_playerwidget.h"

class PlayerWidget : public QWidget
{
    Q_OBJECT

public:
    PlayerWidget( QWidget * parent, const QString & playersName );
    ~PlayerWidget();
    void setScore( int addToScore );
    void setAbsolutScore( int score );
    int score() const;
    void setBackroundSelected( bool selected );
    bool isSelected() const;

private:
    Ui::PlayerWidget ui;
    bool m_selected;
    int m_score;
};

#endif
